package com.pda.xinma.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.pda.xinma.R;
import com.pda.xinma.bean.EndFaceDetailBean;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;

import java.util.List;

public class EndFaceDetailAdapter extends BaseAdapter<EndFaceDetailBean.StocksBean> {
    public EndFaceDetailAdapter(int layoutResId, @Nullable List<EndFaceDetailBean.StocksBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, EndFaceDetailBean.StocksBean item) {
        super.convert(helper, item);
        helper.setText(R.id.tv_latheName,item.getStorageBinId());
        helper.setText(R.id.tv_processName,item.getProcessName());
        helper.setText(R.id.tv_articleId,item.getArticleId());
        helper.setText(R.id.tv_model,item.getModel());
        helper.setText(R.id.tv_grade,item.getGrade());
        helper.setText(R.id.tv_planNum,item.getStockNum());
    }
}
